package com.jprocms.module.cms.api.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.Set;

/**
 * @author jprocms
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Schema(description = "管理后台 - 站点配置默认模板 VO")
public class SiteDefTplVO {

    @Schema(description = "id")
    private Long id;

    //controller填充
    @Schema(description = "站点ID")
    private Long siteId;
    @Schema(description = "pc模板方案")
    private String pcSolution;
    @Schema(description = "h5模板方案")
    private String h5Solution;

    @NotNull
    @Schema(description = "发布平台ID")
    private Long platformId;

    @Schema(description = "首页模板")
    private String indexTpl;

    @Schema(description = "列表模板")
    private String defListTpl;

    @Schema(description = "内容详情模板")
    @Valid
    private Set<SiteContentDefTplVO> contentDefTpls = new HashSet<>();

}
